<template>
    <el-main>
        <ep-breadcrumb></ep-breadcrumb>
        <el-main class="ep-body">
         <epl-top-bar :datas="{formData:form,panel:panel}" showPerson personType="PERSON_ALL_EXACT" psTagType="PERSON_INJURY_QUERY">
                <ep-button size="small" name="刷新"></ep-button>
            </epl-top-bar>
			<epl-userMessage dataType="person" idCount="10" :panel="panel">
                <epl-userMessageItem title="当前待遇" :sum="form.bac063.value" :panel="panel">
                        <epl-column label="补扣发总月数" :value="form.bac062.value"></epl-column>
                        <epl-column label="补扣发总金额" :value="'  ￥'+form.bac063.value"></epl-column>
                    </epl-userMessageItem>
            </epl-userMessage>
        <el-form :model="form" ref="form" :rules="rules">
        <el-row :gutter="10">
            <ep-input colspan="8" label="人员编号" name="aac001" :property="form.aac001" placeholder=""
                        p="H" ></ep-input>
            <ep-input colspan="8" label="单位编码" name="aab001" :property="form.aab001" placeholder=""
                        p="H" ></ep-input>
            <ep-input colspan="8" label="组织ID" name="aaz001" :property="form.aaz001" placeholder=""
                        p="H" ></ep-input>
            <ep-input colspan="8" label="业务日志ID" name="aaz002" :property="form.aaz002" placeholder=""
                        p="H" ></ep-input>
            <ep-input colspan="8" label="组织名称" name="aab004" :property="form.aab004" placeholder=""
                        p="H" ></ep-input>
            <ep-input colspan="8" label="待遇开始年月" name="aic160" :property="form.aic160" placeholder=""
                        p="H" ></ep-input>
            <ep-input colspan="8" label="享受定期待遇人员id" name="aaz257" :property="form.aaz257"
                        p="H" ></ep-input></el-row>
        <el-collapse v-model="activeNames" >
        <el-collapse-item title="认定鉴定信息" name="1">
            <el-card class="ep-card">
                    <ep-input colspan="8" label="单位管理码"  name="aab999" :property="form.aab999" placeholder=""
                                  p="H"  ></ep-input>
                    <el-row :gutter="10">
                        <ep-input colspan="8" label="工伤认定书编号" name="alc011" :property="form.alc011" placeholder=""
                                  p="D"  ></ep-input>
                        <ep-input colspan="8" label="统一社会信用代码"  name="bab010" :property="form.bab010" placeholder=""
								p="D"  ></ep-input>
                        <ep-input colspan="8" label="单位名称" name="aab069" :property="form.aab069" placeholder=""
                                  p="D" ></ep-input>
                    </el-row>
                    <el-row :gutter="10">
                        <ep-date colspan="8" label="工伤发生时间" name="alc020"   :property="form.alc020" placeholder=""
                                  p="D" :datas="{formData:form,panel:panel}" type="date" format="yyyy-MM-dd"  ></ep-date>
						<ep-date colspan="8" label="工伤认定日期"  name="alc031"   :property="form.alc031" placeholder=""
                                  p="D" type="date" format="yyyy-MM-dd" :datas="{formData:form,panel:panel}" ></ep-date>
						<ep-select colspan="8" label="工伤认定结论" name="ala015" :property="form.ala015" placeholder=""
									p="D"  codetype="ALA015"  ></ep-select>  
                    </el-row>       
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="伤害部位1" name="alc042" :property="form.alc042" placeholder=""
                                  p="D"  codetype="ALC042" ></ep-select>
                        <ep-select colspan="8" label="伤害部位2" name="alc043" :property="form.alc043" placeholder=""
                                  p="D"  codetype="ALC043" ></ep-select>
                        <ep-select colspan="8" label="伤害部位3" name="alc044" :property="form.alc044" placeholder=""
                                  p="D"  codetype="ALC044" ></ep-select></el-row>    
                    
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="职业病名称1" name="ala017" :property="form.ala017" placeholder=""
                                  p="D"  codetype="ALA017"></ep-select>
                        <ep-date colspan="8" label="劳动能力鉴定日期"  name="alc034" :property="form.alc034" placeholder="" 
									p="D" type="date" format="yyyy-MM-dd"></ep-date>
                        <ep-select colspan="8" label="伤残等级" name="ala040" :property="form.ala040" placeholder=""
									p="D" codetype="ALA040"  ></ep-select>
                    </el-row>
                    <el-row :gutter="10">
                    <ep-select colspan="8" label="生活自理障碍等级" name="alc060" :property="form.alc060" placeholder=""
									p="D" codetype="ALC060"  ></ep-select>
                    <ep-date colspan="8" label="因工死亡日期"  name="alc040" :property="form.alc040" placeholder=""
									p="D" type="date" format="yyyy-MM-dd" ></ep-date>      
                    <ep-select colspan="8" label="老工伤标识" name="bae476" :property="form.bae476" placeholder=""
									p="D" codetype="BAE476"></ep-select>                       
                    </el-row>
                </el-card>
            </el-collapse-item>
        <el-collapse-item title="请输入待遇终止信息" name="2">
            <el-card class="ep-card">
                <el-row :gutter="10">
                    <ep-select colspan="8" label="终止原因" name="aae160" :property="form.aae160"  placeholder="请选择终止原因"
                    p="R"   codetype="AAE160"></ep-select>
                    <ep-date colspan="8" label="终止年月" name="aae041" :property="form.aae041" placeholder="请输入终止年月" 
                    p="R"   type="date" format="yyyy-MM" ></ep-date>
                    <ep-input colspan="8" label="结算期" name="aae002" :property="form.aae002" 
                    p="D" ></ep-input>
                </el-row>
                <el-row :gutter="10">
                    <ep-input colspan="8" label="补扣发开始年月" name="aae041_2" :property="form.aae041_2" 
                    p="D" ></ep-input>
                    <ep-input colspan="8" label="补扣发结束年月" name="aae042" :property="form.aae042"
                    p="D" ></ep-input>
                    <ep-input colspan="8" label="补扣总月数" name="bac062" :property="form.bac062" 
                    p="D" ></ep-input>
                    <ep-input colspan="8" label="补扣发总金额" name="bac063" :property="form.bac063" 
                    p="D" ></ep-input>
                </el-row>       
                <el-row>
                <ep-textarea :rows="3" label="备注" name="aae013" :property="form.aae013" placeholder="请输入备注"
                    p="E" :datas="{formData: form}"></ep-textarea>
                </el-row>     
        </el-card>
    </el-collapse-item> 
            <el-collapse-item title="请输入领取人发放信息" name="3">
                <el-card class="ep-card">
                        <el-row :gutter="10">
                            <ep-select colspan="8" label="领取人关系" name="bae065" :property="form.bae065"  placeholder="请选择领取人关系"
                                p="R" codetype="BAE065" ></ep-select>
                            <ep-input colspan="8" label="领取人姓名" name="aae133" :property="form.aae133" placeholder="请输入领取人姓名"
                                p="R" ></ep-input>
                            <ep-select colspan="8" label="领取人证件类型" name="aac058" :property="form.aac058"  placeholder="请选择领取人证件类型"
                                p="R" codetype="AAC058"></ep-select>
                        </el-row>
                        <el-row :gutter="10">
                            <ep-input colspan="8" label="领取人证件号码" name="aae136" :property="form.aae136" placeholder="请输入领取人证件号码"
                            p="R" ></ep-input>
                            <ep-input colspan="8" label="邮政编码" name="aae007" :property="form.aae007" placeholder="请输入邮政编码"
                            p="E" ></ep-input>
                            <ep-select colspan="8" label="发放方式" name="aaa079" :property="form.aaa079" placeholder="请选择发放方式"
                            p="R"  codetype="AAA079"></ep-select>
                        </el-row>
                        <el-row :gutter="10">
                            
                            <ep-select colspan="8" label="发放银行" name="aaz065" :property="form.aaz065" placeholder="请选择发放银行"
                            p="R" codetype="AAZ065"></ep-select>
                            <ep-input colspan="8" label="银行账号" name="aae010" :property="form.aae010" placeholder="请输入银行账号"
                            p="R" ></ep-input>
                            <ep-input colspan="8" label="银行开户名" name="aae009" :property="form.aae009" placeholder="请输入银行开户名"
                            p="R"  ></ep-input>
                           
                        </el-row>
                        <el-row :gutter="10">
                            
                            <epl-search-bank colspan="8" label="开户行行号" name="aaf002" :property="form.aaf002" placeholder="请选择新开户行行号"
                                         p="R" :datas="{formData: form}" codetype="AAZ065" bankName="aaz065" show rules="this.$rules.test_noBlank"></epl-search-bank>
                            <ep-input colspan="16" label="开户行名称" name="bac049" :property="form.bac049" 
                            p="R,D" ></ep-input> 
                            
                        </el-row>
                        <el-row :gutter="10">
                                <ep-select colspan="8" label="联系地址" name="bae011" :property="form.bae011"
                                            placeholder="请选择省" codetype="BAE007" p="R"  :datas="{formData:form}" isChange isCodeType></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae012" :property="form.bae012"
                                            placeholder="请选择市" codetype="BAE008" p="R" :datas="{formData: form}" isChange isCodeType
                                            SelectFilterData=" aaa102 like substr(':bae011',0,2)||'%' and aaa102 like '%00' "></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae013" :property="form.bae013" 
                                            placeholder="请选择区县" codetype="BAE009" p="R" :datas="{formData: form}"
                                            SelectFilterData=" aaa102 like substr(':bae012',0,4)||'%'" ></ep-select>
                                <ep-input colspan="8" label="" label-width="0" name="aae006" :property="form.aae006"
                                            placeholder="请输入详细地址" p="R" :datas="{formData:form}"></ep-input>
                            </el-row>
                </el-card>
            </el-collapse-item> 
        </el-collapse>
        </el-form>
         <el-card class="ep-card">
            <el-tabs  v-model="activeName2" type="card" >
                <el-tab-pane label="待遇补扣明细" name="1">
                    <ep-table :data="tableData1" border style="width: 100%;" :titleFilter="demo1">
                    <ep-table-column sortable name="aaa078" header="补扣发标志"></ep-table-column>
                        <ep-table-column sortable name="aaa036" header="待遇类别"></ep-table-column>
                        <ep-table-column sortable name="aae003" header="对应所属期"></ep-table-column>
                        <ep-table-column sortable name="aae019" header="补扣金额"></ep-table-column>
                    </ep-table></el-tab-pane>
                <el-tab-pane label="一次性待遇明细" name="2">
                        <ep-table :data="tableData2" border style="width: 100%;" :titleFilter="demo2">
                            <ep-table-column sortable name="aaa036" header="待遇类别"></ep-table-column>
                            <ep-table-column sortable name="aae002" header="结算期"></ep-table-column>
                            <ep-table-column sortable name="aae019" header="核发金额"></ep-table-column>
                        </ep-table>
                    </el-tab-pane>
                </el-tabs>
                <el-row type="flex" justify="center">
					<ep-saveButton id="doSave" top="20" type="primary" bottom="20" ref="save"  @formValidate="formValidate" 
                                    :validate="['form']"   :datas="{formData: form,panel:panel}" name="保存"></ep-saveButton>
	                <ep-button id="cal01" top="20" type="primary" api="doCalculate" bottom="20"
                    :datas="{formData: form,tableData1:tableData1,tableData2:tableData2,tableData3:tableData3}" name="计算"></ep-button>
                </el-row>
         </el-card>
                
        </el-main>
    </el-main>
</template>

<script src="../js/InjuryBenefitStatusEndJS.js"></script>
